﻿using System;
using OpenCvSharp;
namespace Interaction
{
    class Program
    {

        public static Mat image;
        static void Main(string[] args)
        {
            image = Cv2.ImRead("1.bmp");
            Window f = new Window("bar");
            Mouse test = new Mouse();
            test.Set(image);
            f.SetMouseCallback(test.draw);

            while (true)
            {
                Cv2.ImShow("bar",test.Get());
                Cv2.WaitKey(1);
            }

        }

       

    }
}